package com.xiaotu.facade;

/**
 * @author 张晓
 * @create 2020-06-22 15:41
 */
public class DVDPlayer {
    //使用单利模式，使用饿汉式
    private static DVDPlayer instance = new DVDPlayer();

    public static DVDPlayer getInstance(){
        return instance;
    }

    public void on(){
        System.out.println(" dvd on ");
    }
    public void off(){
        System.out.println(" dvd off ");
    }

    public void play(){
        System.out.println(" dvd is playing ");
    }
    public void pause(){
        System.out.println(" dvd pause .. ");
    }
}
